package com.isdust.zor.core.util;

import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;

import com.isdust.zor.CoreConfig;
import com.isdust.zor.core.R;

import java.io.File;

/**
 *
 * Created by zor on 2016/10/27.
 */

public class ImageUtils {
    public static Bitmap getFromLocal(String imageId){
        Bitmap bitmap = BitmapFactory.decodeFile(CoreConfig.IMAGEPATH+imageId);
        if(bitmap!=null)
            return bitmap;
        return BitmapFactory.decodeResource(Resources.getSystem(), R.drawable.box_blue_solid);
    }
}
